package com.yueze.demo1.service.impl;

import com.yueze.demo1.dao.Image1Mapper;
import com.yueze.demo1.entities.Image1;
import com.yueze.demo1.service.Image1Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Administrator
 * @create 2020-08-05
 * 11:06
 * @desc
 **/
@Service
public class Image1ServiceImpl implements Image1Service {

    @Resource
    private Image1Mapper image1Mapper;

    @Override
    public int create1(Image1 img) {
        return image1Mapper.create1(img);
    }

    @Override
    public int create2(Image1 img) {
        return image1Mapper.create2(img);
    }

    @Override
    public int create3(Image1 img) {
        return image1Mapper.create3(img);
    }

    @Override
    public List<Image1> selectAll(Integer id) {
        return image1Mapper.selectAll(id);
    }

    @Override
    public Image1 getImageById(String img_name) {
        return image1Mapper.getImageById(img_name);
    }

    @Override
    public void delete(String img_name) {
        image1Mapper.delete(img_name);
    }

}
